FILES=gamrj.pdf instructions.pdf listings.pdf

all: $(FILES)

IMAGES = client.pdf repository.pdf

gamrj.pdf: gamrj.tex $(addprefix uml/,$(IMAGES))

%.pdf: %.tex
	pdflatex $<

%.dvi: %.tex
	latex $<

uml/%.pdf: uml/%.dia
	dia $^ -e  uml/$*.eps
	epstopdf uml/$*.eps
	rm -f uml/$*.eps

clean:
	rm -f uml/*.pdf *.pdf *.dvi *~ \#*\#
